package com.qjc.demo.algorithm.链表中倒数第k个节点剑指offer22;

/**
 * @ClassName: ListNode
 * @Author: qjc
 * @Date: 2023/8/16 09:53
 */
public class ListNode {

    int val;
    ListNode next;


    public ListNode(int val) {
        this.val = val;
    }

    public ListNode(int val, ListNode next) {
        this.val = val;
        this.next = next;
    }

    public int getVal() {
        return val;
    }

    public void setVal(int val) {
        this.val = val;
    }

    public ListNode getNext() {
        return next;
    }

    public void setNext(ListNode next) {
        this.next = next;
    }
}
